package com.chen.servicemap.service;

import com.chen.internalcommon.dto.ResponseResult;
import com.chen.servicemap.remote.TerminalClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author chenLiuPing
 **/
@Service
@Slf4j
public class TerminalService {

    @Autowired
    private TerminalClient terminalClient;
    public ResponseResult add(String name, String desc) {
        return terminalClient.add(name, desc);
    }

    public ResponseResult aroundSearch(String center, Integer radius) {
        return terminalClient.aroundSearch(center, radius);
    }
}
